<template>
    <div class="homedelivery">
        <mu-container>
            <mu-paper :z-depth="0">
                <mu-row style="height: 44px; background-color: #fff">
                    <mu-col span="9">
                        <van-field
                            v-model="form.dateTime"
                            label="日期"
                            readonly
                            @click="showDateTime()"
                            label-width="30px"
                            class="van-field-fix"
                        />
                        <van-popup
                            v-model="showPopupDataTime"
                            position="bottom"
                        >
                            <van-datetime-picker
                                v-model="currentDate"
                                type="date"
                                @cancel="cancel"
                                @confirm="confirm"
                                @change="changeDateTime"
                            />
                        </van-popup>
                    </mu-col>
                    <mu-col span="3">
                        <mu-button small style="height: 44px" color="success"
                            >异常上报</mu-button
                        >
                    </mu-col>
                </mu-row>
                <mu-row style="height: 44px; background-color: #fff">
                    <mu-col span="4">
                        <van-field
                            v-model="form.dateTime"
                            label="主单"
                            label-width="30px"
                            class="van-field-fix"
                        />
                    </mu-col>
                    <mu-col span="5">
                        <van-field
                            v-model="form.dateTime"
                            label="分单"
                            label-width="30px"
                            class="van-field-fix"
                            style="margin-left: 5px"
                        />
                    </mu-col>
                    <mu-col span="3">
                        <mu-button small style="height: 44px" color="success"
                            >查询</mu-button
                        >
                    </mu-col>
                </mu-row>
            </mu-paper>
            <mu-paper :z-depth="0">
                <mu-data-table
                    :height="TableHeight"
                    :loading="true"
                    :columns="columns"
                    :sort.sync="sort"
                    @sort-change="handleSortChange"
                    :data="list"
                    class="mu-data-table-fix"
                    style="
                        padding-right: 5px;
                        padding-left: 5px;
                        border-bottom: 2px rgba(0, 0, 0, 0.38) solid;
                    "
                >
                    <template slot-scope="scope">
                        <td class="mu-data-table-td-fix">
                            {{ scope.row.Checked }}
                        </td>
                        <td class="mu-data-table-td-fix">
                            {{ scope.row.HAwbNo }}
                        </td>
                        <td class="mu-data-table-td-fix">
                            {{ scope.row.AwbNo }}
                        </td>
                        <td class="mu-data-table-td-fix">
                            {{ scope.row.RCName.slice(0, 2) }}
                        </td>
                        <td class="mu-data-table-td-fix">
                            {{ scope.row.Count }}
                        </td>
                        <td class="mu-data-table-td-fix">
                            {{ scope.row.RealWeight }}
                        </td>
                        <td class="mu-data-table-td-fix">
                            {{ scope.row.RealWeight }}
                        </td>
                    </template>
                </mu-data-table>
            </mu-paper>

            <mu-paper :z-depth="1" class="mu-paper-fix-footer">
                <mu-container>
                    <mu-row>
                        <mu-col span="3">
                            <span>分单票数: {{ list.length }}</span>
                        </mu-col>
                        <mu-col span="2"></mu-col>
                        <mu-col span="3">
                            <mu-switch
                                v-model="checked"
                                label="已交接"
                            ></mu-switch>
                        </mu-col>
                        <mu-col span="4">
                            <mu-button color="primary">生成交接单</mu-button>
                        </mu-col>
                    </mu-row>
                </mu-container>
            </mu-paper>
        </mu-container>
    </div>
</template>

<script>
let moment = require("moment");
// let Enumerable = require('linq');
export default {
    data () {
        return {
            showPopupDataTime: false,
            currentDate: new Date(),
            tempDateTime: moment().format('YYYY-MM-DD'),
            form: {
                master: "",
                subull: "",
                dateTime: moment().format('YYYY-MM-DD'),
                name: '',
                region: '',
                date: '',
                delivery: false,
                type: [],
                resource: '',
                desc: '',
            },
            checked: true,
            TableHeight: 0,
            TableHeightoffset: 200,
            sort: {
                name: '',
                order: 'asc'
            },
            columns: [
                { title: 'Select', width: '13%', name: 'Checked', align: 'center', cellAlign: 'center' },
                { title: '分单', width: '15%', name: 'HAwbNo', align: 'center', cellAlign: 'center' },
                { title: '主单', name: 'AwbNo', width: '14%', align: 'center', cellAlign: 'center' },
                { title: '路向', name: 'RCName', width: '14%', align: 'center', cellAlign: 'center' },
                { title: '件数', name: 'Count', width: '14%', align: 'center', cellAlign: 'center' },
                { title: '称重重量', name: 'RealWeight', width: '14%', align: 'center', cellAlign: 'center' },
                { title: '操作', name: 'RealWeight', width: '14%', align: 'center', cellAlign: 'center' }
            ],
            list: [
                {
                    "Checked": false,
                    "CanPickUp": true,
                    "HAwbNo": "YTO200903008",
                    "AwbNo": "907-07100000",
                    "Dest": "CTU",
                    "RCName": "成都转运中心",
                    "Count": 10,
                    "Weight": 10,
                    "RealWeight": 10,
                    "DateTime": "/Date(1599533910000)/",
                    "Fno": "CA4376",
                    "Dep": "SYX",
                    "Trans": null,
                    "Tags": [
                        {
                            "TagNo": "YTO200903008-1010",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000030",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903008-1005",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000025",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903008-1001",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000021",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903008-1006",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000026",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903008-1007",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000027",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903008-1002",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000022",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903008-1009",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000029",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903008-1008",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000028",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903008-1004",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000024",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903008-1003",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000023",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        }
                    ],
                    "IsComplete": true,
                    "CqNo": "HF0000059705",
                    "volume": 1,
                    "FromHAwbNo": null
                },
                {
                    "Checked": false,
                    "CanPickUp": true,
                    "HAwbNo": "YTO200909012",
                    "AwbNo": "909-11000000",
                    "Dest": "CTU",
                    "RCName": "成都转运中心",
                    "Count": 6,
                    "Weight": 333,
                    "RealWeight": 1,
                    "DateTime": "/Date(-62135596800000)/",
                    "Fno": "TV9822",
                    "Dep": "SYX",
                    "Trans": null,
                    "Tags": [
                        {
                            "TagNo": "YTO200909012-0003",
                            "ScanTime": "/Date(1599792207000)/",
                            "ExpressNo": "RATU",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200909012-0004",
                            "ScanTime": "/Date(1599792209000)/",
                            "ExpressNo": "RATUL",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200909012-0005",
                            "ScanTime": "/Date(1599792210000)/",
                            "ExpressNo": "RATULP",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200909012-0006",
                            "ScanTime": "/Date(1599792212000)/",
                            "ExpressNo": "RATULPR",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200909012-0001",
                            "ScanTime": "/Date(1599792203000)/",
                            "ExpressNo": "RA",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200909012-0002",
                            "ScanTime": "/Date(1599792205000)/",
                            "ExpressNo": "RAT",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        }
                    ],
                    "IsComplete": true,
                    "CqNo": "HF0000059741",
                    "volume": 0,
                    "FromHAwbNo": null
                },
                {
                    "Checked": false,
                    "CanPickUp": true,
                    "HAwbNo": "YTO200903022",
                    "AwbNo": "907-07400000",
                    "Dest": "CTU",
                    "RCName": "成都转运中心",
                    "Count": 10,
                    "Weight": 333,
                    "RealWeight": 1,
                    "DateTime": "/Date(-62135596800000)/",
                    "Fno": "EU2208",
                    "Dep": "SYX",
                    "Trans": null,
                    "Tags": [
                        {
                            "TagNo": "YTO200903022-1008",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000008",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903022-1009",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000009",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903022-1010",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000010",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903022-1001",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000001",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903022-1002",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000002",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903022-1003",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000003",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903022-1004",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000004",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903022-1005",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000005",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903022-1006",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000006",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903022-1007",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000007",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        }
                    ],
                    "IsComplete": true,
                    "CqNo": "HF0000059719",
                    "volume": 0,
                    "FromHAwbNo": null
                },
                {
                    "Checked": false,
                    "CanPickUp": false,
                    "HAwbNo": "YTO200909003",
                    "AwbNo": "909-10000000",
                    "Dest": "CTU",
                    "RCName": "成都转运中心",
                    "Count": 0,
                    "Weight": 333,
                    "RealWeight": 0,
                    "DateTime": "/Date(-62135596800000)/",
                    "Fno": "CA4376",
                    "Dep": "SYX",
                    "Trans": null,
                    "Tags": [],
                    "IsComplete": false,
                    "CqNo": "HF0000059732",
                    "volume": 0,
                    "FromHAwbNo": null
                },
                {
                    "Checked": false,
                    "CanPickUp": true,
                    "HAwbNo": "YTO200903017",
                    "AwbNo": "907-07300000",
                    "Dest": "CTU",
                    "RCName": "成都转运中心",
                    "Count": 10,
                    "Weight": 333,
                    "RealWeight": 5,
                    "DateTime": "/Date(-62135596800000)/",
                    "Fno": "CA4376",
                    "Dep": "SYX",
                    "Trans": null,
                    "Tags": [
                        {
                            "TagNo": "YTO200903017-1005",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000015",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903017-1006",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000016",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903017-1007",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000017",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903017-1008",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000018",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903017-1009",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000019",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903017-1010",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000020",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903017-1001",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000011",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903017-1002",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000012",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903017-1003",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000013",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903017-1004",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000014",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        }
                    ],
                    "IsComplete": true,
                    "CqNo": "HF0000059714",
                    "volume": 5,
                    "FromHAwbNo": null
                },
                {
                    "Checked": false,
                    "CanPickUp": false,
                    "HAwbNo": "YTO200909009",
                    "AwbNo": "909-70000000",
                    "Dest": "CTU",
                    "RCName": "成都转运中心",
                    "Count": 0,
                    "Weight": 333,
                    "RealWeight": 0,
                    "DateTime": "/Date(-62135596800000)/",
                    "Fno": "3U8758",
                    "Dep": "SYX",
                    "Trans": null,
                    "Tags": [],
                    "IsComplete": false,
                    "CqNo": "HF0000059738",
                    "volume": 0,
                    "FromHAwbNo": null
                },
                {
                    "Checked": false,
                    "CanPickUp": true,
                    "HAwbNo": "YTO200903012",
                    "AwbNo": "907-07200000",
                    "Dest": "CTU",
                    "RCName": "成都转运中心",
                    "Count": 10,
                    "Weight": 333,
                    "RealWeight": 5,
                    "DateTime": "/Date(-62135596800000)/",
                    "Fno": "EU2208",
                    "Dep": "SYX",
                    "Trans": null,
                    "Tags": [
                        {
                            "TagNo": "YTO200903012-1009",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000039",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903012-1002",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000032",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903012-1003",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000033",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903012-1004",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000034",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903012-1008",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000038",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903012-1001",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000031",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903012-1005",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000035",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903012-1007",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000037",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903012-1006",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000036",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        },
                        {
                            "TagNo": "YTO200903012-1010",
                            "ScanTime": "/Date(1594171988000)/",
                            "ExpressNo": "8000000040",
                            "Id": null,
                            "Operator": null,
                            "Scantime": null,
                            "HAwbld": null,
                            "IsJingGang": "no",
                            "FromHAwbNo": null,
                            "abnormal": null
                        }
                    ],
                    "IsComplete": true,
                    "CqNo": "HF0000059709",
                    "volume": 0,
                    "FromHAwbNo": null
                },
                {
                    "Checked": false,
                    "CanPickUp": false,
                    "HAwbNo": "YTO200909006",
                    "AwbNo": "909-40000000",
                    "Dest": "CTU",
                    "RCName": "成都转运中心",
                    "Count": 0,
                    "Weight": 333,
                    "RealWeight": 0,
                    "DateTime": "/Date(-62135596800000)/",
                    "Fno": "EU2208",
                    "Dep": "SYX",
                    "Trans": null,
                    "Tags": [],
                    "IsComplete": false,
                    "CqNo": "HF0000059735",
                    "volume": 0,
                    "FromHAwbNo": null
                },
                {
                    "Checked": false,
                    "CanPickUp": false,
                    "HAwbNo": "YTO200909006",
                    "AwbNo": "909-40000000",
                    "Dest": "CTU",
                    "RCName": "成都转运中心",
                    "Count": 0,
                    "Weight": 333,
                    "RealWeight": 0,
                    "DateTime": "/Date(-62135596800000)/",
                    "Fno": "EU2208",
                    "Dep": "SYX",
                    "Trans": null,
                    "Tags": [],
                    "IsComplete": false,
                    "CqNo": "HF0000059735",
                    "volume": 0,
                    "FromHAwbNo": null
                },
                {
                    "Checked": false,
                    "CanPickUp": false,
                    "HAwbNo": "YTO200909006",
                    "AwbNo": "909-40000000",
                    "Dest": "CTU",
                    "RCName": "成都转运中心",
                    "Count": 0,
                    "Weight": 333,
                    "RealWeight": 0,
                    "DateTime": "/Date(-62135596800000)/",
                    "Fno": "EU2208",
                    "Dep": "SYX",
                    "Trans": null,
                    "Tags": [],
                    "IsComplete": false,
                    "CqNo": "HF0000059735",
                    "volume": 0,
                    "FromHAwbNo": null
                },
                {
                    "Checked": false,
                    "CanPickUp": false,
                    "HAwbNo": "YTO200909006",
                    "AwbNo": "909-40000000",
                    "Dest": "CTU",
                    "RCName": "成都转运中心",
                    "Count": 0,
                    "Weight": 333,
                    "RealWeight": 0,
                    "DateTime": "/Date(-62135596800000)/",
                    "Fno": "EU2208",
                    "Dep": "SYX",
                    "Trans": null,
                    "Tags": [],
                    "IsComplete": false,
                    "CqNo": "HF0000059735",
                    "volume": 0,
                    "FromHAwbNo": null
                },
            ]
        }
    },
    methods: {
        cancel: function () {
            this.showPopupDataTime = false;
        },
        confirm: function () {
            this.form.dateTime = this.tempDateTime;
            this.showPopupDataTime = false;
        },
        changeDateTime: function (picker) {
            this.tempDateTime = picker.getValues().join("-");
        },
        showDateTime: function () {
            if (this.showPopupDataTime == false) {
                this.showPopupDataTime = true;
            }
        },
        handleSortChange ({ name, order }) {
            this.list = this.list.sort((a, b) => order === 'asc' ? a[name] - b[name] : b[name] - a[name]);
        },
        ReSizeTable: function () {
            let _this = this;
            _this.TableHeight = window.innerHeight - _this.TableHeightoffset;
            console.info(_this.TableHeight);
        }
    },
    computed: {
        // 
    },
    created: function () {
        let _this = this;
        _this.ReSizeTable();
    },
    watch: {
        // 
    },
    mounted () {
        let _this = this
        window.onresize = () => {
            return (() => {
                _this.ReSizeTable();
            })()
        }
    },
    activated: function () {
        let _this = this;
        _this.ReSizeTable();
    },
    deactivated: function () {
        // let _this = this;
    },
    // beforeRouteEnter: function (to, from, next) {
    //     global.prev = from.name;
    //     next();
    // },
    updated () {
        // let _this = this;
        // _this.ReSizeTable();
    }

};
</script>

<style scoped>
.van-field-fix {
    padding-right: 0px;
    padding-left: 0px;
}
.mu-data-table-td-fix {
    padding-right: 5px;
    padding-left: 5px;
    margin-left: 15px;
    text-align: center;
}
.mu-paper-fix-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* padding: 20px; */
    padding-bottom: 10px;
    padding-top: 10px;
}
</style>
<style>
.van-field-fix input {
    border-bottom: rgba(0, 0, 0, 0.38) 1px solid;
}
.mu-table-header th {
    padding-right: 5px !important;
    padding-left: 5px !important;
}
table {
    width: 100%;
}
</style>